<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**加盟商提成比例模型*/
class MemberAgent extends Model  {

	/**
	 * The database table used by the model.
	 *
	 * @var string
	 */
	protected $table = 'member_agent';
	protected $primaryKey  ='user_id';

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    /**
     * Indicates if the primary key should be incrementing.
     *
     * @var bool
     */
    //protected $incrementing =false;

    /**
     * The storage format of the model's date columns.
     *
     * @var string
     */
    //protected $dateFormat = 'U';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    //protected $fillable = ['name'];

    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
    //protected $guarded = ['price'];

    //use SoftDeletes;

    /**
     * The attributes that should be mutated to dates.
     *
     * @var array
     */
    //protected $dates = ['deleted_at'];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */

	/**
	 * 模型关系
	 *
	 * $this->belongsTo('App\Models\A','this.','A.');
	 * $this->hasOne('App\Models\A','A.','this.');
	 * $this->hasMany('App\Models\A','A.','this.');
	 * $this->belongsToMany('App\Models\A','A_this','this.','A.');
	 * $this->hasManyThrough('App\Models\A', 'App\Models\middle','middle.','A.','this.');
	 *
	 */

	/**
	 * The tourExtra belong to tour.
	 */

}
